<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Student Info</title>
</head>

<body bgcolor="#CCCCCC">
<br>
<table width="800" height="494" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th height="62" colspan="2" style=" background-color:#F90" scope="col"><font color="#FFFFFF">Exam Room Management<font></th>
  </tr>
  <tr>
    <th width="190" height="427" scope="row" style="background-color:#F90" > <div align="center"><b><font color="#FFFFFF">Menu<font><br><br>
      		{% if std %}	
			<br /><input type="button" onClick="window.location.href='http://127.0.0.1:8000/student/{{ std.stdID }}/'" value="Back">
		{% else %}
			<br /><input type="button" onClick="window.location.href='http://127.0.0.1:8000/student/'" value="Back">

		{% endif %}
		</center>
    </div>
    </th>
    <td width="610" style="background-color:#FFF">
    <center>
    	<h3>Student Information</h3><br>
    	{% if std %}
	    	<p>Fill information in a text box that you want to change</p>
			<form action="/student/edit/{{ std.stdID }}" method="get">    	
	    	<table class="myTable">

	        <tr><th> Subject  </th><th> Old Information </th><th> New Information </th></tr>	                	
	        <tr><td> Student ID  </td><td> {{ std.stdID }} </td><td><center> <input type="text" name="id"> </center></td></tr>
	        <tr><td> Student Name  </td><td> {{ std.stdName }} </td><td><center> <input type="text" name="name"> </center></td></tr>	                
        </table>
        	<br><input type="submit" value="Edit">
        </form>

        {% else %}
        	<p>No Information.</p>
        {% endif %}                                
		</center>
    </td>
  </tr>
</table>
<br>
<br>
<br>
</body>
</html>
